package com.ppblock.shirox.model;

/**
 * @author yangjian
 * @since 17-12-6.
 */
public class ShiroxRole implements com.ppblock.shirox.surpport.ShiroxRole {

	private Integer id;
	private String name;
	private boolean isRoot = false;

	public ShiroxRole() {}

	public ShiroxRole(Integer id, String name) {
		this.id = id;
		this.name = name;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public boolean isRoot() {
		return isRoot;
	}
}
